import express from 'express';
import {
  submitContactMessage,
  getAllContactMessages,
  updateMessageStatus,
  deleteMessage
} from '../controllers/contactController.js';

const router = express.Router();

// Public route
router.post('/', submitContactMessage);

// Admin routes
router.get('/', getAllContactMessages);
router.put('/:id/status', updateMessageStatus);
router.delete('/:id', deleteMessage);

export default router;

